package com.yike.user.service;

import com.yike.user.entity.Customer;
import com.yike.user.param.CustomerPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 顾客表 服务类
 *
 * @author yike
 * @since 2024-07-17
 */
public interface CustomerService extends BaseService<Customer> {

    /**
     * 保存
     *
     * @param customer
     * @return
     * @throws Exception
     */
    boolean saveCustomer(Customer customer) throws Exception;

    /**
     * 修改
     *
     * @param customer
     * @return
     * @throws Exception
     */
    boolean updateCustomer(Customer customer) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteCustomer(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param customerPageParam
     * @return
     * @throws Exception
     */
    Paging<Customer> getCustomerPageList(CustomerPageParam customerPageParam) throws Exception;

}
